From 7087fca7e1d59175c21011c82fdf7f5dd2ad602e Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 20 May 2008 09:41:52 +0100 Subject: [PATCH] ioemu: Fix interpretation of missing or zero vfb videoram Changeset 17289:d97e61001d81: introduced vfb configuration parameter videoram, defaulting to zero. Value zero was interpreted as unlimited. Changeset 17630:53195719f762 accidentally dropped the special case for zero, which broke guests that don't specify videoram, or specify videoram=0. Restore the old behavior. Signed-off-by: Markus Armbruster --- tools/ioemu/hw/xenfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ioemu/hw/xenfb.c b/tools/ioemu/hw/xenfb.c index d1f34c4562..67bb38cca5 100644 --- a/tools/ioemu/hw/xenfb.c +++ b/tools/ioemu/hw/xenfb.c @@ -498,7 +498,7 @@ static int xenfb_configure_fb(struct xenfb *xenfb, size_t fb_len_lim, fb_len_lim, fb_len_max); fb_len_lim = fb_len_max; } - if (fb_len > fb_len_lim) { + if (fb_len_lim && fb_len > fb_len_lim) { fprintf(stderr, "FB: frontend fb size %zu limited to %zu\n", fb_len, fb_len_lim); -- 2.30.2